<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContactsEdit.aspx.cs" Inherits="LAFDC.Web.UI.ContactsEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Edition des contacts</title>
</head>
<body>
    <form id="contactsEdit" runat="server">
    <div>
        <table style="width: 100%">
            <tr>
                <td style="width: 60px">
                    Ref #</td>
                <td>
                    Type</td>
                <td>
                    Valeur</td>
                <td>
                    Description</td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef1" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact1" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact1_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact1" runat="server" OnTextChanged="txtContact1_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact1Desc" runat="server" OnTextChanged="txtContact1Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef2" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact2" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact2_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact2" runat="server" OnTextChanged="txtContact2_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact2Desc" runat="server" OnTextChanged="txtContact2Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef3" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact3" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact3_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact3" runat="server" OnTextChanged="txtContact3_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact3Desc" runat="server" OnTextChanged="txtContact3Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef4" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact4" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact4_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact4" runat="server" OnTextChanged="txtContact4_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact4Desc" runat="server" OnTextChanged="txtContact4Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef5" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact5" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact5_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact5" runat="server" OnTextChanged="txtContact5_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact5Desc" runat="server" OnTextChanged="txtContact5Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
                        <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef6" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact6" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact6_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact6" runat="server" OnTextChanged="txtContact6_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact6Desc" runat="server" OnTextChanged="txtContact6Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
                        <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef7" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact7" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact7_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact7" runat="server" OnTextChanged="txtContact7_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact7Desc" runat="server" OnTextChanged="txtContact7Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
                        <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef8" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact8" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact8_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact8" runat="server" OnTextChanged="txtContact8_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact8Desc" runat="server" OnTextChanged="txtContact8Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
                        <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef9" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact9" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact9_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact9" runat="server" OnTextChanged="txtContact9_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact9Desc" runat="server" OnTextChanged="txtContact9Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
                        <tr>
                <td style="width: 60px">
                    <asp:Label ID="lblRef10" runat="server"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="listContact10" runat="server" DataSourceID="contactDataSource"
                        DataTextField="ContactType" DataValueField="ContactType" OnSelectedIndexChanged="listContact10_SelectedIndexChanged"
                        Width="100%">
                    </asp:DropDownList></td>
                <td>
                    <asp:TextBox ID="txtContact10" runat="server" OnTextChanged="txtContact10_TextChanged"
                        Width="100%"></asp:TextBox></td>
                <td>
                    <asp:TextBox ID="txtContact10Desc" runat="server" OnTextChanged="txtContact10Desc_TextChanged"
                        Width="100%"></asp:TextBox></td>
            </tr>
        </table>
    
    </div><br />
        <asp:Button ID="Submit" runat="server" Height="26px" OnClick="Submit_Click" Text="Enregistrer" /><asp:Label ID="lblSubmit" runat="server" ForeColor="Blue" Height="21px"></asp:Label><asp:SqlDataSource
            ID="contactDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:LAFDCConnectionString %>"
            SelectCommand="SELECT [ContactType] FROM [ContactType]"></asp:SqlDataSource>
    </form>
</body>
</html>
